package admin.server.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import admin.dao.model.UmsMenu;

import java.util.ArrayList;
import java.util.List;

/**
 * 后台菜单节点封装
 * Created by zgb on 2020/2/4.
 */
@Schema(description = "菜单节点 响应对象")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class UmsMenuNodeDto extends UmsMenu {
    private static final long serialVersionUID = 1L;


    @Schema(description = "选中")
    private Boolean check = false;

    @Schema(description = "子级菜单")
    private List<UmsMenuNodeDto> children = new ArrayList<>();
    @Schema(description = "资源列表")
    private List<UmsResourceDto> resourceList = new ArrayList<>();
}
